import { RouteRecordRaw } from 'vue-router';
import * as mdi from '@quasar/extras/mdi-v6';

const workOrderRoutes: RouteRecordRaw[] = [
  {
    path: '/workorder',
    component: () => import('src/layouts/MainLayout.vue'),
    meta: { title: '工单管理', icon: mdi.mdiOrderBoolDescendingVariant },
    children: [
      {
        path: 'neworder',
        name: 'NewOrder',
        component: () => import('src/pages/workorder/NewWorkOrder.vue'),
        meta: { title: '工单录入', icon: mdi.mdiBorderColor },
      },
      {
        path: 'myorder',
        name: 'MyOrder',
        component: () => import('src/pages/workorder/WorkOrderList.vue'),
        meta: { title: '工单录入', icon: mdi.mdiReorderVertical },
      },
      {
        path: 'allorder',
        name: 'AllOrder',
        component: () => import('src/pages/workorder/WorkOrderList.vue'),
        meta: { title: '工单统计', icon: mdi.mdiChartBar },
      },
    ],
  },
];

export default workOrderRoutes;
